<?php

/**
* @Author:  	Daniel Dinh
* @Email:   	webdevelopmentvn@gmail.com
* @Link: 		http://joomsoft.net
* @Version: 	1.0
* @copyright:	Joomsoft.net
* @license:		GNU GPL v3
*/

// no direct access
defined('_JEXEC') or die;
$newfields = array();
foreach($this->form->getFieldset() as $ffield)
{
	$newfields[] =$ffield;
}


?>

<style>
	.inputbox{padding:3px; width:200px;}
</style>
<form action="<?php echo JRoute::_('index.php?option=com_shopping&layout=edit&id='.(int) $this->item->id); ?>" method="post" name="adminForm" id="client-form">
<?php  echo JHtml::_('tabs.start', 'multitabs', array('useCookie'=>1)); ?>
<?php echo JHtml::_('tabs.panel', JText::_("COM_SHOP_TABS_MAIN"), 'tab_owner');?>
<table class="adminform">
		<?php 
            for($i=0;$i<=3;$i++):
            $field = $newfields[$i];
        ?>
    	<tr>
				<td width="15%" class="key"><?php echo $field->label;?></td>
				<td><?php echo $field->input;?></td>
			</tr>
    <?php endfor;?>
</table>
<div class="clr"></div>
<?php echo JHtml::_('tabs.panel', JText::_("COM_SHOP_TABS_OUTPUT"), 'tab_output');?>
<table class="adminform">
		<?php 
            for($i=4;$i<=7;$i++):
            $field = $newfields[$i];
        ?>
    	<tr>
				<td width="15%" class="key"><?php echo $field->label;?></td>
				<td><?php echo $field->input;?></td>
			</tr>
    <?php endfor;?>
</table>
<div class="clr"></div>
<?php echo JHtml::_('tabs.panel', JText::_("COM_SHOP_TABS_DETAIL"), 'tab_detail');?>
<table class="adminform">
		<?php 
            for($i=7;$i<=9;$i++):
            $field = $newfields[$i];
        ?>
    	<tr>
				<td width="15%" class="key"><?php echo $field->label;?></td>
				<td><?php echo $field->input;?></td>
			</tr>
    <?php endfor;?>
</table>
<div class="clr"></div>
<?php echo JHtml::_('tabs.panel', JText::_("COM_SHOP_TABS_CACHE"), 'tab_caching');?>
<table class="adminform">
		<?php 
            for($i=10;$i<=12;$i++):
            $field = $newfields[$i];
        ?>
    	<tr>
				<td width="15%" class="key"><?php echo $field->label;?></td>
				<td><?php echo $field->input;?></td>
			</tr>
    <?php endfor;?>
</table>
<div class="clr"></div>

<?php echo JHtml::_('tabs.end'); ?>
	
	<input type="hidden" name="task" value="setting.edit" />
	<?php echo JHtml::_('form.token'); ?>
</form>
